<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增申请出库" bodyClass="white-bg" libs=["prism","bootstrapSelect","ueditor"]/>
<div class="wrapper wrapper-content ibox-content">
    <@form.form id="form-applyoutlibrary-add"  class="form-horizontal">
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售员"/>：
       </label>
        <div class="col-sm-8"><input name="saleUserid" class="form-control" type="text" readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售订单编号"/>：
       </label>
        <div class="col-sm-8"><input name="saleOrderNumber" class="form-control" type="text"  readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "合同价"/>：
       </label>
        <div class="col-sm-8"><input name="orderContractPrice" class="form-control" type="text"  required>
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "是否包税"/>：</label>
        <div class="col-sm-8">
              <@form.radio name="orderIsTax" dictType="sys_crm_isOrNo" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "是否包运输"/>：</label>
        <div class="col-sm-8">
              <@form.radio name="orderIsTransport" dictType="sys_crm_isOrNo" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "是否保修"/>：</label>
        <div class="col-sm-8">
              <@form.radio name="orderIsGuarantee" dictType="sys_crm_isOrNo" />
        </div>
    </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "其他项目"/>：
       </label>
        <div class="col-sm-8"><input name="orderOtherProject" class="form-control" type="text"  required>
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "选择库存id"/>：
       </label>
        <div class="col-sm-8"><input name="carStockId" class="form-control" type="text"  required>
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "车辆识别码"/>：
       </label>
        <div class="col-sm-8"><input name="carVin" class="form-control" type="text"  readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "车辆型号"/>：
       </label>
        <div class="col-sm-8"><input name="carVehicle" class="form-control" type="text"   readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "库存成本"/>：
       </label>
        <div class="col-sm-8"><input name="carStockCost" class="form-control" type="text"   readonly="true">
        </div>
     </div>
</@form.form>
</div>
<@footer>
    <script type="text/javascript">
        var prefix = baseURL + "bpm/applyoutlibrary"
        $("#form-applyoutlibrary-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if (opt.validate.form()) {
                opt.operate.save(prefix + "/add", $('#form-applyoutlibrary-add').serialize());
            }
        }
</script>
</@footer>
</@pageTheme>